import request from '@/utils/request'

// 查询实验设备列表
export function listEquipment(query) {
    return request({
        url: '/biz/equipment/list',
        method: 'get',
        params: query
    })
}

// 查询实验设备详细
export function getEquipment(id) {
    return request({
        url: '/biz/equipment/' + id,
        method: 'get'
    })
}

// 新增实验设备
export function addEquipment(data) {
    return request({
        url: '/biz/equipment',
        method: 'post',
        data: data
    })
}

// 修改实验设备
export function updateEquipment(data) {
    return request({
        url: '/biz/equipment',
        method: 'put',
        data: data
    })
}

// 删除实验设备
export function delEquipment(id) {
    return request({
        url: '/biz/equipment/' + id,
        method: 'delete'
    })
}
